<?php
!defined('IN_SYSTEM') && exit('Access denied');

$config = array();
$config['db'] = array(
    'host' => 'localhost',
    'name' => 'poweb',
    'user'=>'root',
	'pass'=>'root',
);
$config['cookie'] = array(
    'domain' => $_SERVER['HTTP_HOST'],
    'prefix' => 'c_',
);


// 锁定时间 全局
$config['lock_time'] = 60;

/**
 * 特殊权限节点标注
 */
// 订单复审权限节点ID
$config['orderrerid'] = '16';
$config['orderhistory'] = 'XX';


// 超级管理员ID
// array('id','id','id')逗号分隔
// array()表示无超级管理员
$config['superadmin'] = array('1','2');

// 订单审核状态列表
$config['order_state'] = array(
    0 => '新订单，待分配',
    1 => '待确认',
    2 => '待审批',
    3 => '待出库',
    4 => '正在采购',
    5 => '已出库',
    6 => '已完结',
    100 => '已作废',#固定值
);
$config['order_audit_state'] = array(
    'fenpei' => '0',
    'yewuyuan' => '1',
    'shenpi' => '2',
    'kucun' => '3',
    'caigou' => '4'
);
// 订单审核步骤下级操作员对应的权限节点ID
$config['order_audit_nodes'] = array(
    'fenpei' => 30,
    'kucun' => 31,// 库存对应订单出库操作
    'shenpi' => 16,// 审批操作权限节点ID
	'yewuyuan'=>16,
);

// 日报审核状态列表
$config['daily_state'] = array(1=>'待审',2=>'审批通过',3=>'核销完毕');
// 日报审核步骤下级操作员对应的权限节点ID
$config['daily_audit_nodes'] = array(0=>'34',1=>'35',2=>'39');


// 请假
$config['vacation_audit_nodes'] = array(0=>'42',1=>'43');   //1请假单审批 2请假单复审

//报修单审核
$config['baoxiu_audit_nodes'] = array(1=>'86');

// 借款
$config['loan_audit_nodes'] = array(1=>'47');
$config['loan_post_audit_node'] = '46';

// 还款
$config['repayment_audit_nodes'] = array(1=>74);
$config['repayment_post_audit_node'] = '73';

// 不需要权限验证的操作模块
$config['novalidate'] = array('order_getdesc','message_message');


$config['tuihuo_post_audit_node'] = '103';


/*[指定权限编码 by txz 2012-1-31 ]*/     
$config['daily_post_node'] = '36';      //日报填写权限
$config['loan_post_node'] = '45';       //欠款申请权限
$config['vacation_post_node'] = '41';   //请假申请权限
$config['repayment_post_node'] = '72';   //还款权限


